package com.miao.im;

import com.miao.im.common.Constant;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@MapperScan(basePackages = "com.miao.im.repository.dao")
public class ImApplication {


    public static void main(String[] args) {
        System.setProperty("singleQueue", Constant.DISPATCHER_QUEUE_NAME);
        System.setProperty("broadcastQueue", Constant.DISPATCHER_BROADCAST_QUEUE_NAME);
        SpringApplication.run(ImApplication.class, args);
    }

}
